#!/bin/bash

set -e

rm -rf bin
rm -rf tmp
mkdir tmp

cleanup_exit() {
  echo "Test failed" ${2}
  exit ${1}
}

echo "Build should succeed"
../../build.py build ... || cleanup_exit 1 "build :a #1 failed"

rm -rf bin
rm -rf tmp

echo 'Test passed'
